<template>
  <div>
    <h2>我总共有{{ moneyCount }}元</h2>
    <button @click="eat">吃饭花了100</button>
    <button @click="moneyCount -= 60">洗脚花了60</button>
  </div>
</template>
<script>
export default {
  name: 'base-Case',
  data() {
    return {
      moneyCount: 10000,
    }
  },
  methods: {
    eat() {
      this.moneyCount -= 100
    },
  },
}
</script>
